'''
Created on Mar 30, 2012

@author: lavang
'''
import unittest
from Interface.createAccount import linkCreateAccount, nameTxtPassword,\
    nameTxtFirstName, nameTxtLastName, idTxtComment, nameBtnSubmitReg
from Interface.createAccount import nameTxtLogin, nameTxtRePassword,\
    nameTxtEmail

username="user3"
def createAccount(self):
    sel=self.selenium
    sel.click(linkCreateAccount())
    sel.type(nameTxtLogin(),username)
    sel.type(nameTxtPassword(),"123456")
    sel.type(nameTxtRePassword(),"123456")
    '''
    sel.type(nameTxtEmail(),username+"@gmail.com")
    sel.type(nameTxtFirstName(),username)
    sel.type(nameTxtLastName(),username)
    sel.type(idTxtComment(),"this is"+username)
    '''
    sel.click(nameBtnSubmitReg())